<?php
!function_exists('adminmsg') && die('Forbidden');

if(!$step){
	$upload_file_size = ini_get('file_uploads') ? ini_get('upload_max_filesize') : 'Disabled';
	require PrintEot('header');
	require PrintEot('file_upload');
	adminbottom();
}elseif ($step==2){
	!is_dir($very['attachdir']) && Showmsg('pub_attachmenterror');
	!is_writeable($very['attachdir']) && Showmsg('pub_attachementwrite');
	require_once(R_P.'require/class_attach.php');
	$attach = new Attach();
	$attach->upload();
	$i = $attach->uploadnum;
	adminmsg('pub_uploadok');
}
?>